package com.flyduck.vueshop.system.fallback;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.system.vo.RemoteMenuRespVO;
import com.flyduck.vueshop.system.feign.RemoteMenuFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * SysMenuFallback
 * </p>
 *
 * @author flyduck
 * @since 2024-07-10
 */
@Slf4j
@Component
public class RemoteMenuFallback implements RemoteMenuFeignClient {
    @Override
    public Result<List<String>> getPermissionListByUserId(Long userId) {
        log.error("获取权限信息失败");
        return Result.success(new ArrayList<>());
    }

    @Override
    public Result<List<RemoteMenuRespVO>> getEnableMenuListByUserId(Long userId) {
        log.error("获取菜单信息失败");
        return Result.success(new ArrayList<>());
    }

    @Override
    public Result<List<RemoteMenuRespVO>> getEnableMenuList() {
        log.error("获取菜单信息失败");
        return Result.success(new ArrayList<>());
    }
}
